package com.test.com.bluetoothchatandroid.base;

import android.app.Application;

import com.test.com.bluetoothchatandroid.utils.CrashHandler;

import org.greenrobot.eventbus.EventBus;


/**
 * Created by ${cs} on 2018/2/5.
 */

public class BaseApplication extends Application {

	public static BaseApplication getInstance(){
		return instance;
	}
	private static BaseApplication instance;

	private EventBus eventBus;

	public EventBus getEventBus() {
		return eventBus;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		instance = this;
		CrashHandler.getInstance().init(instance.getApplicationContext());
		eventBus = EventBus.getDefault();
	}
}
